interface ArrivedAtDestinationAPIResData {
  code: number
  msg: string
  time: string
  data: null
}

interface ArrivedAtDestinationAPIData {
  order_status: '4'
  orderid: string
}

export function arrivedAtDestinationAPI(data: ArrivedAtDestinationAPIData, token: string) {
  return httpInstance.post<ArrivedAtDestinationAPIResData, ArrivedAtDestinationAPIData>(
    '/api/driver/ckWancheng',
    data,
    { headers: { token } },
  )
}
